package com.breaktian.demoapp.ui;

import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.widget.ImageView;
import android.widget.TextView;

import com.breaktian.assemble.utils.IpUtil;
import com.breaktian.demoapp.R;
import com.breaktian.demoapp.provider.BaseProvider;
import com.breaktian.demoapp.toobar.ToolBarBuilder;
import com.breaktian.demoapp.ui.base.BaseActivity;

public class TestMoveImageViewActivity extends BaseActivity {

    private Toolbar toolbar;
    private ImageView iv_image;
    private TextView tv_ip;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_move_image_view);
        initView();
    }

    @Override
    protected BaseProvider getProvider() {
        return null;
    }


    private void initView() {
        toolbar = (Toolbar)findViewById(R.id.toolBar);
        new ToolBarBuilder().setToolbar(toolbar).setTitle("测试会移动的ImageView").hideBackIcon(false)
                .build(this);
        iv_image = (ImageView)findViewById(R.id.iv_image);
        tv_ip = (TextView)findViewById(R.id.tv_ip);
        tv_ip.setText(IpUtil.getIpAddressString());

//        startActivity();
    }


}
